<template>
  <div id="app">
    <h1>我是网站的标题</h1>
    <router-link to="/index"
                 tag="button">首页</router-link>
    <router-link to="/about"
                 tag="button">关于</router-link>
    <router-link to="/user/2"
                 tag="button">用户</router-link>
    <router-link to="/home"
                 tag="button">家目录</router-link>
    <router-link to="/profile"
                 tag="button">Profile</router-link>
    <!-- <button @click="toIndex">首页</button>
    <button @click="toAbout">关于</button> -->
    <!-- <button @click="toUser">用户</button> -->
    <keep-alive>
      <router-view></router-view>
    </keep-alive>

    <p>------------------------------</p>
    <p>我是网站底部的版权信息</p>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  },
  methods: {
    // toIndex () {
    //   this.$router.push('/index')
    // },
    // toAbout () {
    //   this.$router.push('/about')
    // },
    // toUser () {
    //   this.$router.push('/user/2')
    // }
  }
}
</script>

<style>
</style>
